﻿@{
    ViewBag.Title = "BoxProfile";
}
@{
    var xinchao = Membership.GetUser() != null ? "Xin chào: " + Membership.GetUser().UserName : "Home";
}

<div class="side-box profile-box">
<h5>@xinchao</h5>
    <ul class="boxProfile">
        <li>
            <a href=@Url.Action("MyProfile", "Account")>Trang cá nhân</a>
        </li>
        <li>
            @if (ViewBag.UnreadMessage == null)
            {
                <a href=@Url.Action("Index", "PMessage")>Hòm thư</a>
            }
            @if (ViewBag.UnreadMessage != null)
            {
                <a href=@Url.Action("Index", "PMessage")>Hòm thư(@ViewBag.UnreadMessage)</a>
            }
        </li>
        <li>
            <a href=@Url.Action("LogOff", "Account")>Thoát</a>
        </li>
    </ul>
</div>
